body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/images/life\ isnt\ fair.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative; /* Necessary for absolute positioning of button */
}

.content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.quote-container,
.reflection-box-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 16px;
    line-height: 1.4;
}

.reflection-box-container h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.reflection-box {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.reflection-submit,
.back-to-quotes {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.reflection-submit:hover,
.back-to-quotes:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque on hover */
    opacity: 1;
}

.back-to-quotes {
    position: fixed; /* Fixed position to stay at the bottom */
    bottom: 20px; /* Distance from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

#confirmation-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.confirm-button {
    background: rgba(255, 255, 255, 0.7);
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
}

.confirm-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.responses-section {
    margin-top: 20px;
    max-width: 100%;
    text-align: left;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: white;
}

.responses-section h2 {
    margin-top: 0;
}

.responses-list {
    list-style: none;
    padding: 0;
}

.responses-list div {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

/* Mobile-friendly adjustments */
@media screen and (max-width: 600px) {
    .content {
        width: 95%;
        padding: 10px;
    }

    .quote-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .reflection-box-container h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .reflection-box {
        height: 120px;
        padding: 8px;
        font-size: 14px;
    }

    .reflection-submit,
    .back-to-quotes {
        font-size: 14px;
        padding: 8px 15px;
    }

    .responses-section {
        padding: 15px;
    }

    .responses-list div {
        padding: 8px;
    }

    #confirmation-dialog .confirmation-content {
        padding: 15px;
    }

    .confirm-button {
        padding: 8px 15px;
        margin: 8px;
    }
}
